﻿namespace Kaesoft.Hospedaje.Entities
{
    public class PropertyValidationRule
    {
        public string PropertyName { get; set; }
        public ValidationRuleDelegate ValidationRule { get; set; }
        public string ErrorMessage { get; set; }
        public ErrorType ErrorType { get; set; }
        public object[] Args { get; set; }
    }

    public enum ErrorType
    {
        Required,
        InvalidFormat,
        NumericExpected,
        Warning
    }
}